// File Name: st_private.h
#ifndef ST_PRIVATE_H
#define ST_PRIVATE_H

#define TRUE                 1
#define FALSE                0

#define halt()               __halt()

#define BT_ON                PD_IDR_IDR4
#define K_PWR                PD_IDR_IDR2
#define K_VOL_D              PD_IDR_IDR5
#define K_NEXT               PD_IDR_IDR6
#define K_PRE                PA_IDR_IDR3
#define K_VOL_U              PC_IDR_IDR6

#define LEDB                 PC_ODR_ODR5
#define LEDR                 PC_ODR_ODR4


#define LED_ALL_ON           {LEDB = 1; LEDR = 1;}
#define LED_ALL_OFF          {LEDB = 0; LEDR = 0;}
#define LED_B_ON             {LEDB = 1; LEDR = 0;}
#define LED_R_ON             {LEDB = 0; LEDR = 1;}
#define LED_BR_ALT           {LEDB = !LEDB;  LEDR = !LEDB;}

#define STBY_ON              PA_ODR_ODR1 = 0 
#define STBY_OFF             PA_ODR_ODR1 = 1 

#define POWRR_SPLY_ON        PA_ODR_ODR2 = 1 
#define POWER_SPLY_OFF       PA_ODR_ODR2 = 0 

#define FM_NRST_ON           PC_ODR_ODR3 = 1
#define FM_NRST_OFF          PC_ODR_ODR3 = 0

typedef signed   char        schar;
typedef unsigned char        uchar;
typedef unsigned short int   uint16;
typedef unsigned long int    uint32;


#endif

